package com.software.chemistry.repository;

import com.software.chemistry.entity.TeacherInfo;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

public interface TeacherInfoRepositiory extends JpaRepository<TeacherInfo, String> {
    List<TeacherInfo> findTeacherByUserNameAndPassword(String userName, String password);
    List<TeacherInfo> findTeacherInfoByUserName(String param_username);
    List<TeacherInfo> findTeacherInfosByUserIdOrUserName(String userId, String userName) ;
}
